using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Globalization;
using System.Threading;
//using EZ_Sales_lisence;
//using SplashScreen;

namespace CMS_GYM
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            SplashScreen.SplashScreen.ShowSplashScreen();
            Application.DoEvents();
            SplashScreen.SplashScreen.SetStatus("Loading module 1");
            System.Threading.Thread.Sleep(500);
            SplashScreen.SplashScreen.SetStatus("Loading module 2");
            System.Threading.Thread.Sleep(300);
            SplashScreen.SplashScreen.SetStatus("Loading module 3");
            System.Threading.Thread.Sleep(900);
            SplashScreen.SplashScreen.SetStatus("Loading module 4");
            System.Threading.Thread.Sleep(100);
            SplashScreen.SplashScreen.SetStatus("Loading module 5");
            System.Threading.Thread.Sleep(400);
            SplashScreen.SplashScreen.SetStatus("Loading module 6");
            System.Threading.Thread.Sleep(50);
            SplashScreen.SplashScreen.SetStatus("Loading module 7");
            System.Threading.Thread.Sleep(240);
            SplashScreen.SplashScreen.SetStatus("Loading module 8");
            System.Threading.Thread.Sleep(900);
            SplashScreen.SplashScreen.SetStatus("Loading module 9");
            System.Threading.Thread.Sleep(240);
            SplashScreen.SplashScreen.SetStatus("Loading module 10");
            System.Threading.Thread.Sleep(90);
            SplashScreen.SplashScreen.CloseForm();

            //TrialMaker t = new TrialMaker("EZAppsoft", Application.StartupPath + "\\RegFile.reg",
            //    Environment.GetFolderPath(Environment.SpecialFolder.System) + "\\TMSetp.dbf",
            //    "Phone:+0903332010 \nMobile:+0908483828",
            //    30, 300, "22321479533537546778");

            //byte[] MyOwnKey = { 97, 250, 1, 5, 84, 21, 7, 63,
            //4, 54, 87, 56, 123, 10, 3, 62,
            //7, 9, 20, 36, 37, 21, 101, 57};
            //t.TripleDESKey = MyOwnKey;

            //TrialMaker.RunTypes RT = t.ShowDialog();
            bool is_trial=true;
            //if (RT != TrialMaker.RunTypes.Expired)
            //{
            //    if (RT == TrialMaker.RunTypes.Full)
            //        is_trial = false;
            //   else
            //        is_trial = true;

            Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
            // Sets the UI culture to French (France)
            Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
            Application.CurrentCulture = new CultureInfo("en-US");

                Application.Run(new frmMain(is_trial));
            //}            
        }
    }
}